<?php
declare(strict_types=1);

namespace App\Models\User\User;


use Illuminate\Database\Eloquent\Relations\BelongsTo;

class AuthorFans extends \App\Models\CommonUser\AuthorFans
{
    /**
     * 用户关联信息
     * @return BelongsTo
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo(UserModel::class, "user_uid", "uid");
    }

    /**
     * 作者关联信息
     * @return BelongsTo
     */
    public function author(): BelongsTo
    {
        return $this->belongsTo(AuthorModel::class, "author_uid", "uid");
    }
}
